<template>
	<view class="app">
		<view class=""><huodong-mode v-for="(item, index) in huoList" :key="index" @tap="seeHuiyiDec(item)" :item='item'></huodong-mode></view>
		<view class="">
			<view class="loading-text">{{ loadingText }}</view>
		</view>
	</view>
</template>

<script>
import huodongMode from '../../components/huodongMode.vue';
import curretData from './index.js';
export default {
	data() {
		return {
			page: 1,
			pageSize: 10,
			loadingText: '到底了......',
			huoList: curretData.huoList
		};
	},
	components: {
		huodongMode
	},
	onLoad() {},
	onReachBottom: function() {
		this.page++;
		console.log(this.page);
	},
	methods: {
		seeHuiyiDec(data) {
			uni.navigateTo({
				url: '../../huiyiLIst/huiyiLIst'
			});
		}
	}
};
</script>

<style lang="scss">
.app {
	padding: 20upx 30upx;
}
</style>
